/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.cardapiodigital.entity;

import java.io.Serializable;
import java.util.Date;



/**
 *
 * @author egberto
 */
public class Destaques implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Integer id;
    private Date dataincial;
    private Date datafinal;
    private String link;
    private Estabelecimentos estabelecimentosId;

    public Destaques() {
    }

    public Destaques(Integer id) {
        this.id = id;
    }

    public Destaques(Integer id, Date dataincial, Date datafinal) {
        this.id = id;
        this.dataincial = dataincial;
        this.datafinal = datafinal;
    }

    public Destaques(Integer id, Date dataincial, Date datafinal, String link, Estabelecimentos estabelecimentosId) {
        this.id = id;
        this.dataincial = dataincial;
        this.datafinal = datafinal;
        this.link = link;
        this.estabelecimentosId = estabelecimentosId;
    }
    
    

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getDataincial() {        
        return dataincial;
    }

    public void setDataincial(Date dataincial) {
        this.dataincial = dataincial;
    }

    public Date getDatafinal() {
        return datafinal;
    }

    public void setDatafinal(Date datafinal) {
        this.datafinal = datafinal;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Estabelecimentos getEstabelecimentosId() {
        return estabelecimentosId;
    }

    public void setEstabelecimentosId(Estabelecimentos estabelecimentosId) {
        this.estabelecimentosId = estabelecimentosId;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Destaques)) {
            return false;
        }
        Destaques other = (Destaques) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.com.entity.Destaques[ id=" + id + " ]";
    }
}
    